import { useEffect } from "react";
// 组件加载时运行
export const useMount = (callback: () => void) => {
  useEffect(() => {
    callback?.();
  }, []);
};